package com.ruibang.glass.produce.domain.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * @Author: songJinKang
 * @CreateTime: 2024-04-26  16:00
 * @Description: TODO
 * @Version: 1.0
 */
@Data
public class ElectricSysTrendChartReq {
    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @NotBlank(message = "趋势图类型不可为空")
    @ApiModelProperty("1：电阻，2：开度，3：电流，4：功率，5：电压，6：平均电阻/总功率")
    private String type;
}
